home *** CD-ROM | disk | FTP | other *** search
- rem [
- rem Name: u.dosbatch.bat
- rem
- rem Derived from: (original)
- rem
- rem Author: David Lillie
- rem
- rem Created on: Sep 1996
- rem
- rem Sccs ID: @(#)u.dosbatch.bat 1.12 02/01/98
- rem
- rem Coding Stds:
- rem
- rem Purpose: Update SoftWindows config.sys and autoexec.bat files.
- rem
- rem Parameters: 1 host OS type i.e. "mac" or "unix"
- rem 2 two-letter language ID
- rem 3 OS version; must be "msdos", "pcdos", "win31"
- rem or "win95". (win31 includes WfW 3.11).
- rem
- rem Copyright 1997 Insignia Solutions PLC. All rights reserved.
- rem ]
-
- set langID=%2
-
- IF NOT EXIST c:\insignia\old\nul md c:\insignia\old >>c:\insignia\up.log
- copy c:\autoexec.bat c:\insignia\old >>c:\insignia\up.log
- copy c:\config.sys c:\insignia\old >>c:\insignia\up.log
-
- rem Select autoexec and config files according to OS and host
- goto os_%3
-
- REM Use MS-DOS autoexec and config files
- :os_msdos
- set auto=autoexec
- set conf=config
- goto %1_auto
-
- REM Use PC DOS autoexec and config files
- :os_pcdos
- set auto=autoexpd
- set conf=configpd
- goto %1_auto
-
- REM Use Windows 3.x versions of autoexec & config files
- :os_win31
- set auto=autoex31
- set conf=config31
- goto %1_auto
-
- REM Use Windows 95 versions of autoexec & config files
- :os_win95
- set auto=autoex95
- set conf=config95
- goto %1_auto
-
- :mac_auto
- copy d:\insignia\%1\%auto%.%langID% c:\autoexec.bat >>c:\insignia\up.log
- copy d:\insignia\%1\%conf%.%langID% c:\config.sys >>c:\insignia\up.log
- goto end
-
- :unix_auto
- keybconf c:\insignia\keyboard.def d:\insignia\%1\%auto%.%langID% c:\autoexec.bat >>c:\insignia\up.log
- keybconf c:\insignia\keyboard.def d:\insignia\%1\%conf%.%langID% c:\config.sys >>c:\insignia\up.log
- goto end
-
- :end